import request from '@/utils/request'
/*
  文件上传
*/
export function uploadFile(data: any) {
  return request({
    url: '/api/file/upload',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
/*
  上传图片
*/
export function uploadImage(data: any) {
  return request({
    url: '/api/corp/wechat/upload/image',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
